package service;

import java.util.List;

import vo.Employee;
import vo.Payment;
import vo.Saleorder;
import vo.Saleorderitem;
import vo.Showitem;


public interface ISaleService {
	        //======1.验证登陆，获得员工对象=============
	public Employee getEmployee(String name,String password);
	   //======2.添加订单=============
	public void addSaleorder(Saleorder saleorder);
	//=======================================2.更新订单===============================================
	public void updateSaleorder(Saleorder saleorder) ;
	//======3.插入到saleorderitem表里=============
	public void addSaleorderitem(Saleorderitem saleorderitem);
	//===============4.获得明细表所有记录====================
	public List<Saleorderitem> getAllItem();
		
	//===============6.获得临时表的总金额===================
		public float getTotalPrice();
    //===============7.添加结算记录===================
	public void addPayment(Payment payment) ;
    //================8.通过saleorderid获得所有订单明细===
	public List<Saleorderitem> getAllItemById(String saleorderid);
	//================9.通过hql语句操作数据库表saleorderitem==
	  public void sale_updateByHql(String hql);
	//================10.通过saleorderid获得订单明细表记录==
	  public Saleorderitem getSaleorderitemById(String saleorderitemid);

	//================12.通过hql获得订单表记录=======
	  public Saleorder getSaleorderByHql(String hql);
	
	

}
